from asyncio import sleep

from selenium import webdriver

options = webdriver.ChromeOptions()

# options.add_argument('--headless')

driver = webdriver.Chrome('D:\chromedriver_win32\chromedriver.exe')

driver.get('http://www.baidu.com')

print(driver.title)
print(driver.current_url)
print(driver.get_cookies())
print(driver.page_source)

sleep(3)
driver.quit()
